const { projects } = require('../store/')

exports.getTemplateParam = async (key) => {
  let result = projects.find(item => {
    return item.key === key
  })
  if (result) {
    return {
      key: result.key,
      title: result.title
    }
  } else {
    return {}
  }
}